<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    *{
        margin: 0px;
        padding: 0px;
    }
    #middle_plate{
        position: absolute;
        top: 0px;
        left: 10%;
        width: 80%;
        height: 2000px;
        background-color: red;
    }
    #adver_left{
        position: fixed;
    }
    #adver_right{
        position: fixed;
        top: 0;
        left:95%;
    }
    #adver_left_tuo{
        position: absolute;
        top: 90%;
        left: 50%;
    }
    #adver_right_tuo{
        position: absolute;
         bottom: 0.01%;
        right: 0.01%;
    }
    #adver_bottom{
        position: fixed;
        bottom: 0.01%;
        right: 0.01%;
    }
    #adver_bottom_close{
        position: absolute;
        top: 0.01%;
        left: 0.01%;
    }
</style>
<body>
    <div id="all">
        <div id="adver">
            <div id="adver_left">
                <div id="adver_left_one"><img src="../images/advertising/ad1.jpg"/></div>
                <div id="adver_left_tuo"><img style="width: 50px;
                    height: 20px;" src="../images/advertising/close.png"/></div>
            </div>
            <div id="adver_right">
                <div id="adver_right_one"><img src="../images/advertising/ad1.jpg"/></div>
                <div id="adver_right_tuo"><img style="width: 50px;
                    height: 20px;" src="../images/advertising/close.png"/></div>
            </div>
        </div>
        <div id="middle_plate"></div>
            <div id="adver_bottom">
                <div><img src="../images/advertising/ad2.jpg"/></div>
                <div id="adver_bottom_close"><img src="../images/advertising/close.png"/></div>
            </div>
    </div>
</body>
<script>
    // 189000401 邓玉石
    let adver_left = document.getElementById("adver_left_tuo");
    let adver_right = document.getElementById("adver_right_tuo");
    function x(){
            let adver =  document.getElementById("adver");
             adver.style.display = 'none';
             setTimeout(function(){
                adver.style.display = 'block';
             },3000)
    }
    adver_left.onclick = x;
    adver_right.onclick = x;
    let adver_bottom =  document.getElementById("adver_bottom");
    function xx(){
            let adver =  document.getElementById("adver_bottom");
             adver.style.display = 'none';
             setTimeout(function(){
                adver.style.display = 'block';
             },3000)
    }
    adver_bottom.onclick = xx;
</script>
</html>